import request from '@/utils/request';
export const getFile = params => request('/api/v1/DocumentFile/Get', { params });
export function create(data) {
  return request({
    url: '/api/v1/DocumentFile/CreateFile',
    method: 'post',
    data
  })
}

export function getReduplicateFilesByFiles(data) {
  return request({
    url: '/api/v1/DocumentFile/GetReduplicateFilesByFiles',
    method: 'post',
    data
  })
}

export function deleteFile(data) {
  return request({
    url: '/api/v1/DocumentFile/Delete',
    method: 'delete',
    data
  })
}
export function update(data) {
  return request({
    url: '/api/v1/DocumentFile/Update',
    method: 'post',
    data
  })
}

export function changeFolder(data) {
  return request({
    url: '/api/v1/DocumentFile/ChangeFolder',
    method: 'post',
    data
  })
}

export function getNodeList(data, pagination) {
  return request({
    url: '/api/v1/DocumentFile/GetFileNodes',
    method: 'get',
    params: data
  })
}

